package com.jxmcloud.business.cut.model.database;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user_login_info")
@Builder
public class DBUserLoginInfo {
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;           //主键ID
    private Long xlId;             //玄乐用户ID
    private String account;        //玄乐账号
    private String nickName;       //用户昵称
    private String icon;           //用户图像
    private Integer shopId;        //门店Id
    private String shopName;       //门店名称
    private Integer sex;           //性别
    private String phone;          //手机号
    private String sessionKey;     //sessionKey
    private Date registerTime;     //注册时间
    private Integer totalBuyNum;   //购买数量
    private Date createTime;
    private Date updateTime;
    private Integer status;          //账号状态 0， 正常 1，封禁
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date bannedTime;        //如果账号是 封禁，封禁截止时间，空为永久封禁
}
